import type { App } from "vue"
import SwUploadImage from "./SwUploadImage.vue"
import { globalConfig, GlobalConfig } from "./config"
// 通过app.use设置基础配置
const install = (app: App, options: Partial<GlobalConfig>) => {
    // app.component('SwUploadImage', SwUploadImage)
    Object.assign(globalConfig, options)
}

export default { install }

export { SwUploadImage }

declare module "vue" {
    export interface GlobalComponents {
        SwUploadImage: typeof SwUploadImage
    }
}
